//
//  CircularBufferController.h
//  INFSWA02
//
//  Created by Justin van Grootveld on 10/16/11.
//  Copyright (c) 2011 Pro4all. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Board;
@class Command;

@interface CircularBufferController : NSObject
{
    NSInteger _index;
    
    NSInteger _size;
    NSMutableArray *_circularBuffer;
}

@property (nonatomic, readonly) NSInteger size;
- (id)initWithBufferSize:(NSInteger)size;

- (void)enqueueObject:(Command *)command;
- (Command *)dequeue;

- (BOOL)hasObjects;

- (void)print;

@end
